package cn.exrick.xboot.shop.service.impl;

import cn.exrick.xboot.shop.entity.ViewArticle;
import cn.exrick.xboot.shop.mapper.ViewArticleMapper;
import cn.exrick.xboot.shop.service.IViewArticleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* <p>
    * VIEW  服务实现类
    * </p>
*
* @author yuhaifei
* @since 2022-10-29
*/
@Service
public class ViewArticleServiceImpl extends ServiceImpl<ViewArticleMapper, ViewArticle> implements IViewArticleService {

    @Autowired
    private ViewArticleMapper viewArticleMapper;

    @Override
    public List<ViewArticle> findArticleLike(List<Integer> idList, String userId) {
        return viewArticleMapper.findArticleLike(idList, userId);
    }
}
